<%@ Page Title="Redirect Types" Language="C#" MasterPageFile="~/Administration/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Administration_RedirectTypes_Default" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPHMain" runat="Server">
    <asp:ListView ID="ListView1" runat="server" DataSourceID="LinqDataSource1">
        <EmptyDataTemplate>
            <p>No redirect types are defined.</p>
            <p>
                <altairis:IconHyperLink ID="IconHyperLink1" runat="server" Icon="LinkAdd" Text="Create redirect type" NavigateUrl="Detail.aspx" CssClass="strong" />
            </p>
        </EmptyDataTemplate>
        <LayoutTemplate>
            <table class="grid">
                <thead>
                    <th>Title</th>
                    <th>Created</th>
                    <th>Status</th>
                </thead>
                <tbody>
                    <tr>
                        <td colspan="3" class="newitem">
                            <altairis:IconHyperLink ID="IconHyperLink1" runat="server" Icon="LinkAdd" Text="New redirect type" NavigateUrl="Detail.aspx" />
                        </td>
                    </tr>
                    <asp:PlaceHolder ID="itemPlaceHolder" runat="server" />
                </tbody>
            </table>
        </LayoutTemplate>
        <ItemTemplate>
            <tr>
                <td>
                    <altairis:IconHyperLink ID="IconHyperLink2" runat="server" Icon="LinkEdit" Text='<%# Eval("Title") %>' NavigateUrl='<%# Eval("RedirectTypeId", "Detail.aspx?RedirectTypeId={0}") %>' CssClass="strong" />
                </td>
                <td class="r">
                    <altairis:DateLabel ID="DateLabel1" runat="server" DateValue='<%# Eval("DateCreated") %>' />
                </td>
                <td>
                    <asp:Literal ID="Literal2" runat="server" Text='<%# Eval("Status") %>' />
                </td>
            </tr>
        </ItemTemplate>
    </asp:ListView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" ContextTypeName="SwitchboardDataContext" OrderBy="Title" Select="new (Title, RedirectTypeId, Status, DateCreated)" TableName="RedirectTypes" />
</asp:Content>
